import { sdkRequest } from '@/utils/sdkReuqest'
import { permission } from '@/config'
export function addPage(param) { // 新增菜单
	return sdkRequest(
		'post',
		`/${permission}/menu/add_system_menu_info/v1`,
		param
	)
}

export function deletePage(param) { // 删除菜单
	return sdkRequest(
		'post',
		`/${permission}/menu/delete_system_menu_info/v1`,
		param
	)
}

export function pageDetail(param) { // 菜单详情
	return sdkRequest(
		'post',
		`/${permission}/menu/get_system_menu_info_detail/v1`,
		param
	)
}

export function pageList(param) { // 菜单列表
	return sdkRequest(
		'post',
		`/${permission}/menu/get_system_menu_info_tree_list/v1`,
		param
	)
}

export function editPage(param) { // 编辑菜单
	return sdkRequest(
		'post',
		`/${permission}/menu/update_system_menu_info/v1`,
		param
	)
}
